package arrayList_basics.src.ExtendsDemo;

public class Manager extends User {
    private int bonus;

    public Manager() {
    }

    public Manager(String id, String name, int money, int bonus) {
        super(id, name, money);
        this.bonus = bonus;
    }

    @Override
    public void work(){
        System.out.println("管理其他人");
    }

    public int getBonus() {
        return bonus;
    }

    public void setBonus(int bonus) {
        this.bonus = bonus;
    }
}
